<?
include_once "../../mode/lang/error.php";
//include_once "../../mode/message/voteAction.php";
include_once "../../mode/message/album.php";
include_once "../../mode/table/tbhelper.php";

$db = new db("mysql:host=localhost;dbname=sns","zyn","zyn");
//print_r(tbhelper::produce("dairy"));
$tip = new album($db,tbhelper::produce("dairy")); 
try{
	$data = array();

	$data['id']= 14 ; //ID

	//print_r($data);
	$tipAction = $tip->getAction(recourse::GET_PERMISSION);
	$tipAction->setData($data);
	//print_r($blogLockAction);

	if($tipAction->checkData()){
		if($con = $tipAction->run()){
			echo $con;
		}
		else{
			echo " NO Password ";
		}
	}
	else{
		echo "CheckDataError";
	}
}
catch(Error $e){
	echo $e->getMessage()."<br /><a href='".$e->getUrl()."'>".$e->getUrlText()."</a>";
}
?>